<template>
  <div class="">
    <ul>
      <li v-for="(item, index) in list" :key="index">
        {{ item.title }}===={{ item.price }}
        <span @click="remove(index)">x</span>
      </li>
    </ul>
  </div>
</template>

<script>
export default {
  props: ["list"],
  data() {
    return {};
  },
  mounted() {},
  methods: {
    remove(i) {
      this.$emit("remove", i);
    },
  },
  components: {},
};
</script>

<style lang="scss"></style>
